package com.smart.seckilldemo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 用户表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_user")
public class User implements Serializable {
    /**
     * 用户ID
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 名字
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 密码
     */
    @TableField(value = "`password`")
    private String password;

    @TableField(value = "slat")
    private String slat;

    /**
     * 头像
     */
    @TableField(value = "head")
    private String head;

    /**
     * 注册时间
     */
    @TableField(value = "register_date")
    private Date registerDate;

    /**
     * 最后一次登陆时间
     */
    @TableField(value = "last_login_date")
    private Date lastLoginDate;

    /**
     * 登陆次数
     */
    @TableField(value = "login_count")
    private Integer loginCount;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_PASSWORD = "password";

    public static final String COL_SLAT = "slat";

    public static final String COL_HEAD = "head";

    public static final String COL_REGISTER_DATE = "register_date";

    public static final String COL_LAST_LOGIN_DATE = "last_login_date";

    public static final String COL_LOGIN_COUNT = "login_count";
}